/**
 * Copyright &copy; 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.fee.entity;

import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.google.common.collect.Lists;

import com.jeeplus.core.persistence.DataEntity;
import com.jeeplus.common.utils.excel.annotation.ExcelField;

/**
 * 应收Entity
 * @author 李超辉
 * @version 2018-02-01
 */
public class Receivable extends DataEntity<Receivable> {
	
	private static final long serialVersionUID = 1L;
	private String shipmentNumbers;		// 装运单号
	private String entrustNumber;		// 委托单号
	private String thdh;		// 提货单号
	private String company;   //收货单位
	private String site;//收货详细地址
	private Date date;//下单日期
	private String start;//起运地
	private String width;//吨位区间
	private String arrive;   //到站地
	private String weight;		// 总重量
	private String mileage;		// 里程
	private String Price;		// 单价
	private String freight;		// 总运费(不含税)
	private String received;		// 已开票
	private String surplus;		// 剩余开票
	private String status;		// 状态
	private String project;		// 项目
	private String min;//起始时间
	private String max;//截止时间
	private Double ad;  //附加费
   private String pid;//委托单
	private String sl;//税率
	private String hs;//含税金额
	private String  qr;//受票方

	public String getQr() {
		return qr;
	}

	public void setQr(String qr) {
		this.qr = qr;
	}

	public String getSl() {
		return sl;
	}

	public void setSl(String sl) {
		this.sl = sl;
	}

	public String getHs() {
		return hs;
	}

	public void setHs(String hs) {
		this.hs = hs;
	}

	public String getPid() {
		return pid;
	}

	public void setPid(String pid) {
		this.pid = pid;
	}

	public String getSite() {
		return site;
	}

	public void setSite(String site) {
		this.site = site;
	}

	public Double getAd() {
		return ad;
	}

	public void setAd(Double ad) {
		this.ad = ad;
	}

	public String getMin() {
		return min;
	}

	public void setMin(String min) {
		this.min = min;
	}

	public String  getMax() {
		return max;
	}

	public void setMax(String max) {
		this.max = max;
	}

	private List<ReceivablesDetailed> receivablesDetailedList = Lists.newArrayList();		// 子表列表
	
	public Receivable() {
		super();
	}

	public Receivable(String id){
		super(id);
	}

	public String getCompany() {
		return company;
	}

	public void setCompany(String company) {
		this.company = company;
	}

	public String getArrive() {
		return arrive;
	}

	public void setArrive(String arrive) {
		this.arrive = arrive;
	}

	@ExcelField(title="装运单号", align=2, sort=5)
	public String getShipmentNumbers() {
		return shipmentNumbers;
	}

	public void setShipmentNumbers(String shipmentNumbers) {
		this.shipmentNumbers = shipmentNumbers;
	}
	
	@ExcelField(title="委托单号", align=2, sort=6)
	public String getEntrustNumber() {
		return entrustNumber;
	}

	public void setEntrustNumber(String entrustNumber) {
		this.entrustNumber = entrustNumber;
	}
	
	@ExcelField(title="提货单号", align=2, sort=7)
	public String getThdh() {
		return thdh;
	}

	public void setThdh(String thdh) {
		this.thdh = thdh;
	}
	
	@ExcelField(title="总重量", align=2, sort=8)
	public String getWeight() {
		return weight;
	}

	public void setWeight(String weight) {
		this.weight = weight;
	}
	
	@ExcelField(title="里程", align=2, sort=9)
	public String getMileage() {
		return mileage;
	}

	public void setMileage(String mileage) {
		this.mileage = mileage;
	}
	
	@ExcelField(title="单价", align=2, sort=10)
	public String getPrice() {
		return Price;
	}

	public void setPrice(String Price) {
		this.Price = Price;
	}
	
	@ExcelField(title="总结算金额", align=2, sort=11)
	public String getFreight() {
		return freight;
	}

	public void setFreight(String freight) {
		this.freight = freight;
	}
	
	@ExcelField(title="已开票", align=2, sort=12)
	public String getReceived() {
		return received;
	}

	public void setReceived(String received) {
		this.received = received;
	}
	
	@ExcelField(title="剩余开票金额", align=2, sort=13)
	public String getSurplus() {
		return surplus;
	}

	public void setSurplus(String surplus) {
		this.surplus = surplus;
	}
	
	@ExcelField(title="状态", align=2, sort=14)
	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}
	
	@ExcelField(title="项目", align=2, sort=15)
	public String getProject() {
		return project;
	}

	public void setProject(String project) {
		this.project = project;
	}
	
	public List<ReceivablesDetailed> getReceivablesDetailedList() {
		return receivablesDetailedList;
	}
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm")
	public Date getDate() {
		return date;
	}

	public void setDate(Date date) {
		this.date = date;
	}

	public String getStart() {
		return start;
	}

	public void setStart(String start) {
		this.start = start;
	}

	public String getWidth() {
		return width;
	}

	public void setWidth(String width) {
		this.width = width;
	}

	public void setReceivablesDetailedList(List<ReceivablesDetailed> receivablesDetailedList) {
		this.receivablesDetailedList = receivablesDetailedList;
	}
}